set(CMAKE_CXX_FLAGS "-Wall ${LLVM_CXX_FLAGS}")
set(CMAKE_INCLUDE_CURRENT_DIR YES)
include_directories(SYSTEM ${FANLLVMCORE_INCLUDE_DIRS} ${FANLLVMSYS_INCLUDE_DIRS} ${LLVM_INCLUDEDIR})

#set(FCODE_SRCS fcode/FConstants.cpp fcode/FPod.cpp fcode/FPodReader.cpp fcode/FType.cpp)
#set(UTIL_SRCS util/TypeParser.cpp)
set(TOOLS_SRCS tools/Fan.cpp)

add_executable(fan-llvm ${FCODE_SRCS} ${UTIL_SRCS} ${TOOLS_SRCS} fan-llvm.cpp)
target_link_libraries(fan-llvm ${FANLLVMCORE_LIBRARIES} ${FANLLVMSYS_LIBRARIES} ${LLVM_LIBS} ${LLVM_LDFLAGS})
